<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>股票模拟交易系统</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }
        header {
            background-color: #333;
            color: white;
            padding: 1rem;
            text-align: center;
        }
        nav {
            background-color: #444;
            padding: 0.5rem;
            text-align: center;
        }
        nav a {
            color: white;
            text-decoration: none;
            margin: 0 1rem;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem;
        }
        .card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        h1, h2, h3 {
            color: #333;
        }
        .btn {
            display: inline-block;
            background-color: #4CAF50;
            color: white;
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
        }
        .btn:hover {
            background-color: #45a049;
        }
        .market-data {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        .stock-item {
            border-bottom: 1px solid #eee;
            padding: 0.5rem 0;
        }
        .login-form {
            max-width: 400px;
            margin: 0 auto;
        }
        .form-group {
            margin-bottom: 1rem;
        }
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
        }
        .form-group input {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
    </style>
</head>
<body>
    <header>
        <h1>股票模拟交易系统</h1>
        <p>基于Python和AI的股票交易模拟平台</p>
    </header>
    <nav>
        <a href="/">首页</a>
        <a href="#market">市场行情</a>
        <a href="#trade">交易中心</a>
        <a href="#analysis">AI分析</a>
        <a href="#statistics">统计报表</a>
        <a href="#account">我的账户</a>
    </nav>
    <div class="container">
        <div class="card">
            <h2>欢迎使用股票模拟交易系统</h2>
            <p>这是一个基于Python和Ollama大模型的股票模拟交易平台，让您在无风险的环境中学习股票交易和投资策略。</p>
            <a href="#login" class="btn">登录/注册</a>
        </div>
        <div class="card" id="market">
            <h2>市场行情</h2>
            <div class="market-data">
                <div>
                    <h3>上证指数</h3>
                    <p>3200.50 <span style="color: green">+0.85%</span></p>
                </div>
                <div>
                    <h3>深证成指</h3>
                    <p>2100.25 <span style="color: red">-0.32%</span></p>
                </div>
                <div>
                    <h3>创业板指</h3>
                    <p>4200.75 <span style="color: green">+1.25%</span></p>
                </div>
            </div>
            <h3>热门股票</h3>
            <div class="stock-item">
                <div style="display: flex; justify-content: space-between;">
                    <div><strong>贵州茅台(600519)</strong></div>
                    <div>1800.00 <span style="color: red">-1.5%</span></div>
                </div>
            </div>
            <div class="stock-item">
                <div style="display: flex; justify-content: space-between;">
                    <div><strong>宁德时代(300750)</strong></div>
                    <div>250.50 <span style="color: green">+2.3%</span></div>
                </div>
            </div>
            <div class="stock-item">
                <div style="display: flex; justify-content: space-between;">
                    <div><strong>招商银行(600036)</strong></div>
                    <div>35.80 <span style="color: green">+0.6%</span></div>
                </div>
            </div>
        </div>
        <div class="card" id="login">
            <h2>用户登录</h2>
            <form class="login-form">
                <div class="form-group">
                    <label for="username">用户名</label>
                    <input type="text" id="username" placeholder="请输入用户名">
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" id="password" placeholder="请输入密码">
                </div>
                <button type="submit" class="btn">登录</button>
                <p style="margin-top: 1rem;">还没有账户？<a href="#register">立即注册</a></p>
            </form>
        </div>
    </div>
    <script>
        // 这里可以添加JavaScript代码，实现交互功能
        document.querySelector('.login-form').addEventListener('submit', function(e) {
            e.preventDefault();
            alert('登录功能将在后端完成后实现');
        });
    </script>
</body>
</html>